package com.jeff

/**
 * Just a shadow of Airline, where it maps to the same table as that domain
 * @author zhou.zhefu
 *
 */
class AirlineMapping {
	String nameM
	String codeM
	
	static mapping = {
		table "airline"
		version true
		columns {
			nameM column: "name"
			codeM column: "code"
		}
	}
	
	@Override
	public String toString() {
		return "$codeM - $nameM"
	}
    static constraints = {
		nameM(blank:false)
		codeM(blank:false)
    }
}
